﻿<%@ Page Language="C#" Inherits="d3PrtDgn.Web.LoginPage" Codebehind="Login.aspx.cs" MasterPageFile="~/Web/d3PrtDgnTemplate.Master" %>

<asp:Content id="body" contentPlaceholderId="body" runat="server">

    <h2><%= GetMessage("mainHeader") %></h2>

	<asp:Label runat="server" Visible="false" ID="lblSuccessfulyRegistered" />
	<asp:Label runat="server" Visible="false" ID="lblNeedToLogin" CssClass="error" />
	<asp:Label runat="server" Visible="false" ID="lblLoginFailed" CssClass="error" />

	<asp:Panel runat="server" DefaultButton="btnLogin">
		<asp:Table runat="server">
			<asp:TableRow>
				<asp:TableHeaderCell CssClass="leftHeader"><asp:Label runat="server" ID="lblUsername" /></asp:TableHeaderCell>
				<asp:TableCell><asp:TextBox runat="server" ID="tbUsername" /></asp:TableCell>
				<asp:TableCell CssClass="error"><spring:ValidationError runat="server" ID="usernameErrors" /></asp:TableCell>
			</asp:TableRow>
			<asp:TableRow>
				<asp:TableHeaderCell CssClass="leftHeader"><asp:Label runat="server" ID="lblPassword" /></asp:TableHeaderCell>
				<asp:TableCell><asp:TextBox runat="server" ID="tbPassword" TextMode="Password" /></asp:TableCell>
			</asp:TableRow>
			<asp:TableRow>
				<asp:TableCell ColumnSpan="2" CssClass="center"><asp:Button runat="server" ID="btnLogin" OnClick="btnLogin_Click" /></asp:TableCell>
			</asp:TableRow>
		</asp:Table>
	</asp:Panel>
</asp:Content>